add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
    ${CMAKE_SOURCE_DIR}
    ${CMAKE_BINARY_DIR}
    ${KDE4_INCLUDES}
)

set(welinux_SRCS plasma-welinux.cpp updateswidget.cpp)
kde4_add_plugin(plasma_applet_welinux ${welinux_SRCS})
target_link_libraries(plasma_applet_welinux qjson ${KDE4_CORE_LIBS} ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${QT_QTNETWORK_LIBRARY})

install(TARGETS plasma_applet_welinux DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-welinux.desktop DESTINATION ${SERVICES_INSTALL_DIR})
